package com.st.po;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

@Tag(name="商品搜索",description = "通过传入的参数模糊查询并倒序返回")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsSelectLikePo {

    @Schema(description = "商品名")
    @NotNull(message = "所传参数不能为空")
    @NotBlank(message = "不能传入空格")
    @Length(max = 20,message = "请输入正确的名字")
    private String name;
}
